package shoppingmall.reception.dto;


import shoppingmall.reception.pojo.CommercialSpecification;

import java.util.List;

/**
 * 前台商品的一些属性--返回给前端
 */
public class ProductVO {
    private int productId;  //商品id
    private String productName;  //商品名称
    private String productDescription;  //商品描述
    private float productDiscount;  //商品折扣
    private int productSales;  //商品销量
    private int productSaleMoney;  //商品销售额
    private int productClassificationId;  //商品分类id
    private String productImgs;  //商品图片地址字符串集合
    private String createTime;  //商品创建时间
    private String updateTime;  //商品更新时间
    private String ProductClassificationName;  //商品分类名称
    private List<CommercialSpecification> CommercialSpecificationList;  //商品规格集合

    public ProductVO() {
    }

    public ProductVO(int productId, String productName, String productDescription, float productDiscount, int productSales, int productSaleMoney, int productClassificationId, String productImgs, String createTime, String updateTime, String productClassificationName, List<CommercialSpecification> commercialSpecificationList) {
        this.productId = productId;
        this.productName = productName;
        this.productDescription = productDescription;
        this.productDiscount = productDiscount;
        this.productSales = productSales;
        this.productSaleMoney = productSaleMoney;
        this.productClassificationId = productClassificationId;
        this.productImgs = productImgs;
        this.createTime = createTime;
        this.updateTime = updateTime;
        ProductClassificationName = productClassificationName;
        CommercialSpecificationList = commercialSpecificationList;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public float getProductDiscount() {
        return productDiscount;
    }

    public void setProductDiscount(float productDiscount) {
        this.productDiscount = productDiscount;
    }

    public int getProductSales() {
        return productSales;
    }

    public void setProductSales(int productSales) {
        this.productSales = productSales;
    }

    public int getProductSaleMoney() {
        return productSaleMoney;
    }

    public void setProductSaleMoney(int productSaleMoney) {
        this.productSaleMoney = productSaleMoney;
    }

    public int getProductClassificationId() {
        return productClassificationId;
    }

    public void setProductClassificationId(int productClassificationId) {
        this.productClassificationId = productClassificationId;
    }

    public String getProductImgs() {
        return productImgs;
    }

    public void setProductImgs(String productImgs) {
        this.productImgs = productImgs;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getProductClassificationName() {
        return ProductClassificationName;
    }

    public void setProductClassificationName(String productClassificationName) {
        ProductClassificationName = productClassificationName;
    }

    public List<CommercialSpecification> getCommercialSpecificationList() {
        return CommercialSpecificationList;
    }

    public void setCommercialSpecificationList(List<CommercialSpecification> commercialSpecificationList) {
        CommercialSpecificationList = commercialSpecificationList;
    }
}
